﻿@model ArchiveViewModel
@{
    Layout = null;
    ViewBag.Title = "案卷目录修改";
}
<script type="text/javascript">
    function dialogRefresh(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("form[name='pagerForm_file']", navTab.getCurrentPanel()).submit();
            $.pdialog.closeCurrent();
        }
    }
</script>
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("EditPost", "Archive", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogRefresh);", @class = "pageForm required-validate" }))
{
    <div class="pageFormContent sortDrag" layouth="60">
        @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_ID, new { @type = "hidden" })
        @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Pft_ID, new { @type = "hidden" })
        <table class="tab01 tabNo" width="95%;">
            <tr>
                <td class="td1" style="width: 25%;">文件类型：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_FileType, new { @class = "input02" })
                     @Html.ValidationMessageFor(model => model.TheBcdFilelistInfo.Fl_FileType)
                </td>
            </tr>
            <tr>
                <td class="td1">档案号：</td>
                <td>
                    @Html.TextAreaFor(model => model.TheBcdFilelistInfo.Fl_Code, new {  @class = "input05"})
                     @Html.ValidationMessageFor(model => model.TheBcdFilelistInfo.Fl_Code)
                </td>
            </tr>
            <tr>
                <td class="td1">流水号：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_Numb, new {Value=Model.TheBcdFilelistInfo.Fl_Numb.ToString("D3"), @class = "input02 digits" })
                     @Html.ValidationMessageFor(model => model.TheBcdFilelistInfo.Fl_Numb)
                </td>
            </tr>
            <tr>
                <td class="td1">档案馆号：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_Archive, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">项目名称：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_Item, new { @class = "input02" })
                     @Html.ValidationMessageFor(model => model.TheBcdFilelistInfo.Fl_Item)
                </td>
            </tr>
            <tr>
                <td class="td1">起讫里程/
                    <br />
                    有关单位：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_FileTitle, new { @class = "input02" })
                     @Html.ValidationMessageFor(model => model.TheBcdFilelistInfo.Fl_FileTitle)
                </td>
            </tr>
            <tr>
                <td class="td1">文件名称：</td>
                <td>
                    @Html.TextAreaFor(model => model.TheBcdFilelistInfo.Fl_FileName, new { cols = "3", @class = "input05" })
                    @Html.ValidationMessageFor(model => model.TheBcdFilelistInfo.Fl_FileName)
                </td>
            </tr>
            <tr>
                <td class="td1">立卷单位：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_Unit, new { @class = "input02" })
                     @Html.ValidationMessageFor(model => model.TheBcdFilelistInfo.Fl_Unit)
                </td>
            </tr>
            <tr>
                <td class="td1">起止日期：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_StartDate, new { @class = "date ", @readonly = "readonly", format = "yyyy-MM", @style = "width:91px;", Value = (Model.TheBcdFilelistInfo.Fl_StartDate == null ? "" : Convert.ToDateTime(Model.TheBcdFilelistInfo.Fl_StartDate).ToString("yyyy-MM")) })
                    <span style="float: left;">—</span>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_EndDate, new { @class = "date ", @readonly = "readonly", format = "yyyy-MM", @style = "width:91px;", Value = (Model.TheBcdFilelistInfo.Fl_EndDate == null ? "" : Convert.ToDateTime(Model.TheBcdFilelistInfo.Fl_EndDate).ToString("yyyy-MM")) })
                </td>
            </tr>
            <tr>
                <td class="td1">件数：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_Kit, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">总页数：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_Page, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">保管期限：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_Kept, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">密级：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_Level, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">立卷人：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_FilingMan, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">立卷时间：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_FilingTime, new { @class = "date input02", @readonly = "readonly", format = "yyyy-MM-dd", Value = (Model.TheBcdFilelistInfo.Fl_FilingTime == null ? "" : Convert.ToDateTime(Model.TheBcdFilelistInfo.Fl_FilingTime).ToString("yyyy-MM-dd")) })
                </td>
            </tr>
            <tr>
                <td class="td1">检查人：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_CheckMan, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">检查时间：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_CheckTime, new { @class = "date input02", @readonly = "readonly", format = "yyyy-MM-dd", Value = (Model.TheBcdFilelistInfo.Fl_CheckTime == null ? "" : Convert.ToDateTime(Model.TheBcdFilelistInfo.Fl_CheckTime).ToString("yyyy-MM-dd")) })
                </td>
            </tr>
            <tr>
                <td class="td1">互见号：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFilelistInfo.Fl_TheNo, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">说明：</td>
                <td>
                    @Html.TextAreaFor(model => model.TheBcdFilelistInfo.Fl_Explain, new { cols = "3", @class = "input05" })
                </td>
            </tr>
            <tr>
                <td class="td1">备注：</td>
                <td>
                    @Html.TextAreaFor(model => model.TheBcdFilelistInfo.Fl_Remark, new { cols = "3", @class = "input05" })
                </td>
            </tr>
        </table>
    </div>

    <div class="formBar">
        <ul>
            <li>
                <button type="submit" class="btn btn-sm" onclick="">保存</button>
            </li>
            <li>
                <button type="button" class="close btn btn-default btn-sm">取消</button>
            </li>

        </ul>
    </div>
}